<script>
  import $ from 'dfish-widget'
  import Method from '../Method.vue'

  export default {
    mixins: [Method],
    data() {
      return {
        name: '$.br',
        remark: '浏览器相关信息',
        attrs: [{
          name: 'chrome',
          remark: '是否chrome',
          type: 'Boolean',
        },{
          name: 'firefox',
          remark: '是否firefox',
          type: 'Boolean',
        },{
          name: 'safari',
          remark: '是否safari',
          type: 'Boolean',
        },{
          name: 'mobile',
          remark: '是否移动浏览器',
          type: 'Boolean',
        },{
          name: 'app',
          remark: '是否移动app',
          type: 'Boolean',
        },{
          name: 'wechat',
          remark: '是否wechat',
          type: 'Boolean',
        },{
          name: 'android',
          remark: '是否android',
          type: 'Boolean',
        },{
          name: 'ios',
          remark: '是否ios',
          type: 'Boolean',
        },{
          name: 'iphone',
          remark: '是否iphone',
          type: 'Boolean',
        },{
          name: 'ipad',
          remark: '是否ipad',
          type: 'Boolean',
        }],
        examples: [{
          remark: '控制台打印是否移动浏览器',
          code: `
            console.log($.br.mobile);
            `
        }]
      }
    }
  }
</script>
